#ifndef __TOOLS_H
#define __TOOLS_H

#include "stm32f10x.h"

#define TEST_RCC RCC_APB2Periph_GPIOB
#define TEST_PORT GPIOB
#define TEST_PIN_TRIGGER GPIO_Pin_9

#define TRIGGER_H (TEST_PORT->BSRR = TEST_PIN_TRIGGER)
#define TRIGGER_L (TEST_PORT->BRR = TEST_PIN_TRIGGER)

void delay_us(uint32_t us);
void delay_ms(uint32_t ms);
void delay_s(uint32_t s);

#endif /*__TOOLS_H*/
